//
//  TestFiveViewController.m
//  TestConstriant
//
//  Created by jyjx on 2019/5/7.
//  Copyright © 2019 apple. All rights reserved.
//

#import "TestFiveViewController.h"

@interface TestFiveViewController ()
@property (weak, nonatomic) IBOutlet UIView *whiteView;

@end

@implementation TestFiveViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (IBAction)singleTap:(UITapGestureRecognizer *)sender {
    
    self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0];
    [self dismissViewControllerAnimated:YES completion:nil];
    
}

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
    
    
    if ([touch.view isDescendantOfView:self.whiteView]) {
        return NO;
    }
    
    
    return YES;

}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
